package com.yfqy.admin.service;

import com.github.pagehelper.PageInfo;
import com.yfqy.admin.domain.dto.category.AddCategory;
import com.yfqy.admin.domain.dto.category.CategoryDTO;
import com.yfqy.admin.domain.dto.category.CategoryQuery;
import com.yfqy.admin.domain.dto.category.ModifyCategory;
import com.yfqy.admin.domain.entity.Category;

public interface CategoryService {


    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    CategoryDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    PageInfo<CategoryDTO> pageListByName(CategoryQuery categoryQuery);

    int addCategory(AddCategory addCategory);

    int modifyCategory(ModifyCategory modifyCategory);

    int deleteCategory(Long id);
}
